package com.llbnk.springcoding.mapper.user_info_core;

import com.llbnk.springcoding.pojo.User;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface UserInfoMapper {

    // 插入用户
    int insert(User user);

    // 根据ID查询用户
    User selectByPrimaryKey(Long id);

    // 更新用户
    int updateByPrimaryKey(User user);

    // 根据用户名查询用户
    User selectByUserId(Long userId);

    // 删除用户
    int deleteByPrimaryKey(Long id);
}
